package jwdt.common.dao;

@SuppressWarnings("rawtypes")
public interface BaseDao<T> {

	public String doAddObj(T obj) throws Exception;

	public String doDelObj(Class clz, Object id) throws Exception;

	public T doLoadObj(Class clz, int id) throws Exception;
	
	public T doLoadObj(Class clz, Object id) throws Exception;
	
	public String doUpdateObj(Class clz, Object id, T obj) throws Exception;
	
	public String doUpdateExactlyObj(Class clz, Object id, T obj) throws Exception;
	
	public String doUpdateState(Class clz, String querySql, String setSql) throws Exception;
	
	public String doIntUpdateState(Class clz, String querySql, String setSql) throws Exception;
}